﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Net.Business.DataTransferObjects
{
    public class EntryStatsDTO
    {
        #region Constructors

        public EntryStatsDTO() { }

        public EntryStatsDTO(DateTime CreateMonth, int EntryCount)
        {
            this.createMonth = CreateMonth;
            this.entryCount = EntryCount;
        }

        #endregion

        #region Properties

        private DateTime createMonth;
        private int entryCount;

        public DateTime CreateMonth
        {
            get { return createMonth; }
            set { createMonth = value; }
        }

        public int EntryCount
        {
            get { return entryCount; }
            set { entryCount = value; }
        }

        public string CreateMonthName
        {
            get { return createMonth.ToString("MMMM"); }
        }

        public string CreateMonthYear
        {
            get { return createMonth.ToString("MM.yy"); }
        }

        #endregion

    }
}
